]> dgit.raspbian.org Git - gnome-shell.git/commit
mpris: Use a scope specific message instead of a global one
authorJonas Dreßler <verdre@v0yd.nl>
Sun, 17 Nov 2019 15:24:52 +0000 (16:24 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 21 Nov 2019 22:54:07 +0000 (22:54 +0000)
commitd5e8f8cdf7aa3cf6525d58ecfbba05832df3d8a6
treeb0bdadfae2a41a168b59ed7f1ea650346595da69
parent55362aed3d42e02d3b8aaf2ff79cdcae79ce2b50
mpris: Use a scope specific message instead of a global one

Since the mpris implementation of the notification tray supports showing
multiple notification (one for each player), it doesn't make sense to
have only one global property to store the message, since that only
allows referencing one message at a time.

Instead, handle the MediaMessages completely inside the scope of
`_addPlayer()`, this should allow showing more than one message again,
which broke with commit 4dc44304dff2974d3b026b5aa58e0d5c25d38216 [1].

[1] https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/791

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/833
js/ui/mpris.js